package com.example.index.ui

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.index.R
import com.example.index.widget.ArcTabBar
import kotlinx.android.synthetic.main.activity_arc_tab_bar.*

class ArcTabBarActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_arc_tab_bar)

        arcTabBar.setTabs(
            arrayListOf(
                ArcTabBar.TabParam(
                    "赚钱",
                    R.drawable.zhuanqian,
                    R.drawable.zhuanqian_gray,
                    R.color.color_selected,
                    R.color.color_unselected,
                    14f
                ), ArcTabBar.TabParam(
                    "红包",
                    R.drawable.hongbao,
                    R.drawable.hongbao_gray,
                    R.color.color_selected,
                    R.color.color_unselected,
                    14f
                ), ArcTabBar.TabParam(
                    "邀请好礼",
                    R.drawable.yqhl,
                    R.drawable.yqhl,
                    R.color.color_selected,
                    R.color.color_unselected,
                    14f
                ), ArcTabBar.TabParam(
                    "发现",
                    R.drawable.faxian,
                    R.drawable.faxian_gray,
                    R.color.color_selected,
                    R.color.color_unselected,
                    14f
                ), ArcTabBar.TabParam(
                    "我的",
                    R.drawable.my,
                    R.drawable.my_gray,
                    R.color.color_selected,
                    R.color.color_unselected,
                    14f
                )
            )
        )

    }
}
